import { Suspense } from "react";

const Loading = () => {
  return <div>loading...</div>;
};

const LazyLoad = (props) => {
  return <Suspense fallback={<Loading />}>{props.component}</Suspense>;
};

export default LazyLoad;
